package SpringBoot.__template.full.config.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import com.titan.core.utils.io.ConsoleUtils;

@WebListener
public class CustomHttpSessionListener implements HttpSessionListener, HttpSessionAttributeListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        ConsoleUtils.method(CustomHttpSessionListener.class, "sessionCreated");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        ConsoleUtils.method(CustomHttpSessionListener.class, "sessionDestroyed");
    }

    @Override
    public void attributeAdded(HttpSessionBindingEvent se) {
        ConsoleUtils.method(CustomHttpSessionListener.class, "attributeAdded");
    }

    @Override
    public void attributeRemoved(HttpSessionBindingEvent se) {
        ConsoleUtils.method(CustomHttpSessionListener.class, "attributeRemoved");
    }

    @Override
    public void attributeReplaced(HttpSessionBindingEvent se) {
        ConsoleUtils.method(CustomHttpSessionListener.class, "attributeReplaced");
    }

}
